﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

namespace ProjectWizardManagementv1.WpfComponents.ComponentClasses
{
    public class CellTextField : TextBox
    {
        private string _originalText;

        public string Reference { get; set; }

        public string OriginalText
        {
            get { return _originalText; }
            set { _originalText = value;
                StringText = value;
            }
        }

        public string StringText
        {
            get { return this.Text; }
            set {this.Text = value; }
        }

        public bool HasBeenEdited
        {
            get { return StringText != OriginalText; }
        }

        public CellTextField()
        {
             this.Margin = new Thickness(-1, 3 , 4 , 0);
        }
    }
}
